<?php
class Kierunek_model extends CI_Model{
    function get_by_id($id){
        $this->db->where('id',$id);

        return $this->db->get('gumis')->row()->get('imie');
    }
    function get_by_letter($letter = 'a'){
        return $this->db->query('SELECT * FROM kierunek where nazwa LIKE "'.$letter.'%"')->result();
    }
}

?>
